mirror of
https://github.com/HorlogeSkynet/CDNUpdates
synced 2025-02-26 16:00:45 +01:00
21 lines
491 B
Python
21 lines
491 B
Python
|
|
|
|
from CDNUpdates.CDNUtils import LINK_REGEX
|
|
|
|
from sublime import IGNORECASE
|
|
|
|
|
|
class CheckForLinks():
|
|
def __init__(self, view, regionList):
|
|
"""
|
|
This method gathers URLs present within the sheet calling this plugin.
|
|
"""
|
|
|
|
self.view = view
|
|
self.regionList = regionList
|
|
|
|
for region in self.view.find_all(LINK_REGEX, IGNORECASE):
|
|
|
|
# We have to fill the list directly (passed by reference)
|
|
self.regionList.append(region)
|