Skip to content

Commit ed6eacb

Browse files
committed
build
1 parent 69c85cb commit ed6eacb

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

browser-extensions/chrome/vendors/pangu/pangu.umd.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/browser/pangu.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/browser/pangu.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/browser/pangu.umd.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/browser/pangu.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node/cli.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class BrowserPangu extends Pangu {
382382
continue;
383383
}
384384
if (currentTextNode instanceof Text) {
385-
if (currentTextNode.data.length === 1 && (currentTextNode.data === '"' || currentTextNode.data === '"' || currentTextNode.data === '"')) {
385+
if (currentTextNode.data.length === 1 && /["\u201c\u201d]/.test(currentTextNode.data)) {
386386
if (currentTextNode.previousSibling) {
387387
const prevNode = currentTextNode.previousSibling;
388388
if (prevNode.nodeType === Node.ELEMENT_NODE && prevNode.textContent) {
@@ -426,7 +426,7 @@ class BrowserPangu extends Pangu {
426426
const testNewText = this.spacingText(testText);
427427
const currentLast = currentTextNode.data.slice(-1);
428428
const nextFirst = nextTextNode.data.slice(0, 1);
429-
const isQuote = (char) => char === '"' || char === '"' || char === '"';
429+
const isQuote = (char) => /["\u201c\u201d]/.test(char);
430430
const isCJK = (char) => /[\u4e00-\u9fff]/.test(char);
431431
const skipSpacing = isQuote(currentLast) && isCJK(nextFirst) || isCJK(currentLast) && isQuote(nextFirst);
432432
if (testNewText !== testText && !skipSpacing) {

dist/node/cli.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/shared/index.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/shared/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)