Skip to content

Commit f28da80

Browse files
committed
Correct Regex added for Dofus Touch format helper service
1 parent b8dbff6 commit f28da80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/modules/category-parsers/dofus-touch/services/format-helpers.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
},
66

77
getElement: (stat) => {
8-
const regex = /(-?\d+)\s((de|à|to|and)? (-?\d+))?/gi;
8+
const regex = /(-?\d+)\s?((de|à|to|and)? (-?\d+))?/gi;
99
return stat.replace(regex, '').trim();
1010
},
1111

0 commit comments

Comments
 (0)