Search: replace-text

Last modified by admin on 2022/04/24 04:58

Results 1 - 2 of 2 Page 1

XWiki.JavaScriptExtension[2]

Located in
Objects
code : const testPattern = /^\[[+-]?\d+(\.\d+)?\]/; function replaceNodeText(from) { if (from.nodeType === 3) { const text = from.textContent; if (testPattern.test(text)) { from.textContent = text.replace(testPattern, "").trim(); } } else if (from.childNodes) { for (const

code

Located in
Property value
const testPattern = /^\[[+-]?\d+(\.\d+)?\]/; function replaceNodeText(from) { if (from.nodeType === 3) { const text = from.textContent; if (testPattern.test(text)) { from.textContent = text.replace(testPattern, "").trim(); } } else if (from.childNodes) { for (const element
Page 1
RSS feed for search on [replace-text]
Created by admin on 2022/04/17 14:38