mirror of
https://github.com/Viren070/stremio-addons-list.git
synced 2025-12-01 23:19:02 +01:00
Fix slug sanitization of non-alphanumeric characters
Not all non-alphanumeric characters are added to the charmap yet but this should fix the current issue with the Easynews addon.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const fs = require('fs')
|
||||
const slug = require('slug')
|
||||
const slug = require('./lib/slug')
|
||||
const needle = require('needle')
|
||||
const asyncQueue = require('async.queue')
|
||||
const config = require('./config')
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
const config = require('../config')
|
||||
const slug = require('slug')
|
||||
const slug = require('../lib/slug')
|
||||
const needle = require('needle')
|
||||
|
||||
const discordGreeting = () => {
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
const _slug = require('slug')
|
||||
|
||||
_slug.charmap['+'] = 'plus'
|
||||
|
||||
const slug = (string, opts) => _slug(string, opts)
|
||||
|
||||
module.exports = slug
|
||||
Reference in New Issue
Block a user