Skip to content

Commit

Permalink
Reduce complex string object allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Dec 4, 2021
1 parent 5a8f8b0 commit ae97249
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ class TemplateModelFinder {
// or starts with layout:fragment="name( or layout:fragment="name ( plus
// their data attribute equivalents. See the attoparser API docs for details:
// http://www.attoparser.org/apidocs/attoparser/2.0.0.RELEASE/org/attoparser/select/package-summary.html
fragmentName && dialectPrefix ? "//[" +
fragmentName && dialectPrefix ? '//[' +
"${dialectPrefix}:fragment='${fragmentName}' or " +
"${dialectPrefix}:fragment^='${fragmentName}(' or " +
"${dialectPrefix}:fragment^='${fragmentName} (' or " +
"data-${dialectPrefix}-fragment='${fragmentName}' or " +
"data-${dialectPrefix}-fragment^='${fragmentName}(' or " +
"data-${dialectPrefix}-fragment^='${fragmentName} ('" +
"]" : null
']' : null
)
}

Expand Down

0 comments on commit ae97249

Please sign in to comment.