@sustaina/shared-ui 1.27.1 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6021,7 +6021,7 @@ var pushVariableAndInner = (tokens, value, prefixMap, prefixes) => {
|
|
|
6021
6021
|
}
|
|
6022
6022
|
cursor += prefix.length;
|
|
6023
6023
|
const rest = value.slice(cursor);
|
|
6024
|
-
const codeMatch = rest.match(
|
|
6024
|
+
const codeMatch = rest.match(/^[\w-]+/);
|
|
6025
6025
|
if (codeMatch) {
|
|
6026
6026
|
tokens.push({ type: prefixMap[prefix], code: codeMatch[0] });
|
|
6027
6027
|
cursor += codeMatch[0].length;
|
|
@@ -6050,7 +6050,7 @@ var tokenizeFormulaString = (raw, prefixMap) => {
|
|
|
6050
6050
|
const prefix = findPrefixAt(raw, i, prefixes);
|
|
6051
6051
|
if (prefix) {
|
|
6052
6052
|
const rest = raw.slice(i + prefix.length);
|
|
6053
|
-
const codeMatch = rest.match(
|
|
6053
|
+
const codeMatch = rest.match(/^[\w-]+/);
|
|
6054
6054
|
if (codeMatch) {
|
|
6055
6055
|
flushBuffer();
|
|
6056
6056
|
segments.push({ kind: "token", prefix, code: codeMatch[0] });
|
|
@@ -6074,7 +6074,7 @@ var parseFormulaToToken = (text, prefixMap) => {
|
|
|
6074
6074
|
return tokens;
|
|
6075
6075
|
}
|
|
6076
6076
|
const afterPrefix = text.slice(leadingPrefix.length);
|
|
6077
|
-
const codeMatch = afterPrefix.match(
|
|
6077
|
+
const codeMatch = afterPrefix.match(/^[\w-]+/);
|
|
6078
6078
|
if (!codeMatch) {
|
|
6079
6079
|
pushVariableAndInner(tokens, text, prefixMap, prefixes);
|
|
6080
6080
|
return tokens;
|