@nativescript-community/text 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/text",
|
3
|
-
"version": "1.6.
|
3
|
+
"version": "1.6.2",
|
4
4
|
"description": "Expands the capabilities of NativeScript's text property.",
|
5
5
|
"main": "./index",
|
6
6
|
"sideEffects": false,
|
@@ -30,5 +30,5 @@
|
|
30
30
|
},
|
31
31
|
"license": "Apache-2.0",
|
32
32
|
"readmeFilename": "README.md",
|
33
|
-
"gitHead": "
|
33
|
+
"gitHead": "b1ccad631cbddb0346b0ceaa73804a4c231045a7"
|
34
34
|
}
|
@@ -128,7 +128,7 @@ class NSTextUtils: NSObject {
|
|
128
128
|
attrText.enumerateAttribute(NSAttributedString.Key.link, in: fullRange) { value, range, stop in
|
129
129
|
if (value != nil) {
|
130
130
|
let attributes:NSMutableDictionary! = NSMutableDictionary(dictionary:attrText.attributes(at: range.location, longestEffectiveRange:nil, in:range))
|
131
|
-
|
131
|
+
var sValue:String! = nil
|
132
132
|
if (value is NSURL) {
|
133
133
|
sValue = (value as! NSURL).absoluteString
|
134
134
|
} else {
|