This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$.fn.add = function(sep = " = ") { | |
(function($this) { | |
const re = /([0-9]+)/g; | |
const n1 = re.exec($this.text()); | |
const n2 = re.exec($this.text()); | |
if ((n1 && n2) === null) return function(){}; | |
const a = parseInt(n1[0]); | |
const b = parseInt(n2[0]); | |