1
0
mirror of https://github.com/HorlogeSkynet/CDNUpdates synced 2025-02-26 16:00:45 +01:00
CDNUpdates/CDNCheckForLinks.py
2018-01-13 10:47:24 +01:00

21 lines
481 B
Python

from sublime import IGNORECASE
from .CDNUtils import LINK_REGEX
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)