Update package.json and ft-timestamp-catcher.js

This commit is contained in:
Preston 2020-10-02 10:05:41 -04:00
parent 9220f3d719
commit 9667d7aa37
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@
"copy-webpack-plugin": "^6.1.1",
"css-loader": "^4.3.0",
"devtron": "^1.4.0",
"electron": "^10.1.2",
"electron": "^9.3.1",
"electron-builder": "^22.8.1",
"electron-builder-squirrel-windows": "^22.9.1",
"electron-debug": "^3.1.0",

View File

@ -20,7 +20,7 @@ export default Vue.extend({
}
},
detectTimestamps: function (input) {
return input.replaceAll(/(\d+(:\d+)+)/g, '<a href="#" onclick="this.dispatchEvent(new CustomEvent(\'timestampClicked\',{bubbles:true, detail:\'$1\'}))">$1</a>')
return input.replace(/(\d+(:\d+)+)/g, '<a href="#" onclick="this.dispatchEvent(new CustomEvent(\'timestampClicked\',{bubbles:true, detail:\'$1\'}))">$1</a>')
}
}
})