Update plugin.js (#795)
The Asciinema cast plugin regex was faulty. Casts can have /[a-z]/ characters, not only digits /\d) Here is a test cast for you to run: https://asciinema.org/a/29qfl1dwsgd25o91nfv3dvvbn (squashed two commits --@lorenzhs)
This commit is contained in:
parent
6149aa8a07
commit
4971baefec
|
@ -400,7 +400,7 @@ plugins.factory('userPlugins', function() {
|
|||
* Asciinema plugin
|
||||
*/
|
||||
var asciinemaPlugin = new UrlPlugin('ascii cast', function(url) {
|
||||
var regexp = /^https?:\/\/(?:www\.)?asciinema.org\/a\/(\d+)/i,
|
||||
var regexp = /^https?:\/\/(?:www\.)?asciinema.org\/a\/([0-9a-z]+)/i,
|
||||
match = url.match(regexp);
|
||||
if (match) {
|
||||
var id = match[1];
|
||||
|
|
Loading…
Reference in New Issue