Releases: gregjacobs/Autolinker.js
Releases · gregjacobs/Autolinker.js
v1.3.1
- Fix for
Array.prototype.push
encountering a "Maximum Call Stack Exceeded" error when the input is a large number of HTML character entities
v1.3.0
v1.2.2
v1.2.1
Move gulp-header
dependency from dependencies
to devDependencies
v1.2.0
v1.1.1
v1.1.0
- Add
stripTrailingSlash
option to decided whether or not to remove a trailing slash from URL matches - Add individual
scheme
andwww
options tostripPrefix
to decide to strip the scheme, the 'www', or both from URL matches
v1.0.0
Long awaited 1.0 release which adds the mention
feature to replace the twitter
option, and change the replaceFn
to be passed only one argument (the Match
object).
Breaking Changes from 0.x -> 1.x
twitter
option removed, replaced withmention
(which accepts'twitter'
and'instagram'
values)- Matching mentions (previously the
twitter
option) now defaults to
being turned off. Previously, Twitter handle matching was on by
default. replaceFn
option now called with just one argument: theMatch
object (previously was called with two arguments:autolinker
and
match
)- (Used inside the
replaceFn
)TwitterMatch
replaced with
MentionMatch
, andMentionMatch.getType()
now returns'mention'
instead of'twitter'
- (Used inside the
replaceFn
)TwitterMatch.getTwitterHandle()
->
MentionMatch.getMention()